/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nc.kyiv.yellow.sociallibrary.dao;

import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;

/**
 *
 * @author My
 */
public interface IDAO<T> {
    void save(T t) throws SQLException;
    void delete(T t);
    void update(T t);
    Connection getConnection(DataSource source);
    void releaseConnection(Connection connection);
}
